package org.jactao.registry;

import org.jactao.rpc.LComponent;

import java.util.List;

/**
 * Created by fanzetao on 2018/4/8.
 * 默认服务注册约定格式：key = className&version, value = ip&port&weight&...
 */
public interface LRegistry extends LComponent {

    void register(LRegistryInfo registryInfo);

    void register(List<LRegistryInfo> registryInfoList);

    List<LRegistryInfo> get(String serviceName, String version);
}
